/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

/**
 * 防火墙规则Entity
 * @author dh
 * @version 2017-03-20
 */
public class SceneFirewallRule {

	private String id;
	private String name;
	private String firewallId;		// 防火墙策略id
	private String protocol;		// IP协议:icmp,tcp,udp
	private String action;		// 动作:allow或deny
	private String ipVersion;		// ip版本：4或6
	private String destinationIpAddress;		// 目的ip地址/子网
	private String sourceIpAddress;		// 源ip地址/子网
	private String sourcePort;		// 源端口/端口范围
	private String destinationPort;		// 目的端口/端口范围

	@Override
	public String toString() {
		return "SceneFirewallRule{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", firewallId='" + firewallId + '\'' +
				", protocol='" + protocol + '\'' +
				", action='" + action + '\'' +
				", ipVersion='" + ipVersion + '\'' +
				", destinationIpAddress='" + destinationIpAddress + '\'' +
				", sourceIpAddress='" + sourceIpAddress + '\'' +
				", sourcePort='" + sourcePort + '\'' +
				", destinationPort='" + destinationPort + '\'' +
				'}';
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFirewallId() {
		return firewallId;
	}

	public void setFirewallId(String firewallId) {
		this.firewallId = firewallId;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getIpVersion() {
		return ipVersion;
	}

	public void setIpVersion(String ipVersion) {
		this.ipVersion = ipVersion;
	}

	public String getDestinationIpAddress() {
		return destinationIpAddress;
	}

	public void setDestinationIpAddress(String destinationIpAddress) {
		this.destinationIpAddress = destinationIpAddress;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getSourcePort() {
		return sourcePort;
	}

	public void setSourcePort(String sourcePort) {
		this.sourcePort = sourcePort;
	}

	public String getSourceIpAddress() {
		return sourceIpAddress;
	}

	public void setSourceIpAddress(String sourceIpAddress) {
		this.sourceIpAddress = sourceIpAddress;
	}

	public String getDestinationPort() {
		return destinationPort;
	}

	public void setDestinationPort(String destinationPort) {
		this.destinationPort = destinationPort;
	}
}